dhcpv6: refactor dhcp_request Function
authorNicolas BESNARD <[email protected]>
Mon, 28 Oct 2024 14:41:51 +0000 (14:41 +0000)
committerÁlvaro Fernández Rojas <[email protected]>
Mon, 3 Nov 2025 15:14:47 +0000 (16:14 +0100)
commit1df65f0caf4647288972b637c89aa4f226c92a7a
tree30dea1ca7d1905cb2b9712d7cc2888975dcd0064
parent047c63a8156bc1908824cb327667e4b222677701
dhcpv6: refactor dhcp_request Function

Problem:
    The current implementation of the dhcp_request function handles both
    sending and receiving messages within the same function. This makes
    the function a blocking one, as it waits for a valid response before
    proceeding, causing potential delays.

Solution:
    The dhcp_request function is refactored into two functions:
    one for sending DHCP messages and another for receiving them.

Signed-off-by: Nicolas BESNARD <[email protected]>
Signed-off-by: Paul Donald <[email protected]>
Link: https://github.com/openwrt/odhcp6c/pull/106
Signed-off-by: Álvaro Fernández Rojas <[email protected]>
src/dhcpv6.c
src/odhcp6c.h